// SINGULARITY HTML5 GAME ENGINE
// -----------------------------
// Copyright(c) 2013 by Codenova.pl

define(function () {
    var EventStatic = function() {};

    EventStatic.prototype = {
        PerformBeforeRender: function(event) {
            // Check for action type
            switch(event.Action) {
                case 'modal':
                    // In case of modal, just render it
                    event.Data.Initialize();
                    event.Data.Add();
                    break;
                default:
                    break;
            }
        }
    };

    return EventStatic.prototype;
});